package cn.sourcespro.shiro.entity;

import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

/**
* 用户 Entity
*
* @author 张浩伟
* @date 2018/07/12
*/
@Getter
@Setter
public class User implements Serializable {

    /**
     * 
     */
    private Long id;

    /**
     * 
     */
    private String username;

    /**
     * 
     */
    private String nickname;

    /**
     * 
     */
    private String password;

    /**
     * 
     */
    private String salt;

    /**
     * 
     */
    private Byte status;

    private Set<String> roles = new HashSet<>();

    private Set<String> perms = new HashSet<>();

}